﻿using System.ComponentModel.DataAnnotations;

namespace ParkManagement
{
    /// <summary>
    /// 更新里程数据传输对象
    /// </summary>
    public class UpdateConsumptionDto
    {
        [Display(Name = "编号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int Id { get; set; }

        [Display(Name = "行驶日期")]
        public string TravelDate { get; set; }

        [Display(Name = "行驶里程")]
        public int? TravelDistance { get; set; }

        [Display(Name = "金额")]
        public decimal? Amount { get;  set; }

        [Display(Name = "加油量")]
        public double? GasFilling { get;  set; }
    }
}